Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Sharing Window

An object of class Sharing Window is a sharing window that appears when you choose Sharing from the File menu while a sharable container is selected.

PROPERTIES
A sharing window has all the properties defined for object class Window on page 93: Bounds, Closeable, Floating, Index, Modal, Position, Resizable, Titled, Visible, Zoomable, and Zoomed.

Unlike other windows, a sharing window also has these properties:

container
A reference to the container to which the sharing
window belongs.
Class: Reference
Modifiable: No
exported
A Boolean value that indicates whether the container to which the sharing window belongs is either shared or inside another container whose contents are being shared. If one of these conditions is true, the value is true and the container can be mounted or accessed remotely; if neither of these conditions is true, the value is false and the container isn't available to remote computers.
Class: Boolean
Modifiable: No
folder
A reference to the folder, if any, to which the sharing
window belongs.
Class: Reference
Modifiable: No
group
The name of the user or group selected in the pop-up menu labeled User/Group.
Class: String
Modifiable: Yes
group privileges
The group privileges selected in the sharing window. For example, if the See Folders checkbox is not selected and the
See Files and Make Changes checkboxes are selected for a user or group, the value of this property is "See Files, Make Changes" (see page 82 for the definition of Sharing Privileges).
Class: Sharing Privileges
Modifiable: Yes
guest privileges
The guest privileges selected in the sharing window (that is, the settings labeled Everybody). For example, if the See Folders checkbox is not selected and the See Files and Make Changes checkboxes are selected for Everybody, the value of this property is "See Files, Make Changes" (see page 82 for the definition of Sharing Privileges).
Class: Sharing Privileges
Modifiable: Yes
inherited privileges A Boolean value that indicates whether the privileges for the object to which the sharing window belongs are the same as the privileges for the container in which the object is stored (true) or not (false). This property corresponds to the checkbox in the sharing window labeled "Same as enclosing folder". The value of this property is set to false if you set any of the group, guest, or owner privileges individually.
Class: Boolean
Modifiable: Yes
item
The item to which the sharing window belongs.
Class: Reference
Modifiable: No
mounted
A Boolean value that indicates whether the sharable container to which the sharing window belongs is mounted on another computer's desktop (true) or not (false).
Class: Boolean
Modifiable: No
owner
The name of the sharable container's owner.
Class: String
Modifiable: Yes
owner privileges
The owner privileges selected in the sharing window. For example, if the See Folders checkbox is not selected and the
See Files and Make Changes checkboxes are selected for
the container's owner, the value of this property is "See Files, Make Changes" (see page 82 for the definition of Sharing Privileges).
Class: Sharing Privileges
Modifiable: Yes
protected
A Boolean value that indicates whether the sharable container is protected (true) or not (false). A protected container can't be moved, renamed, or deleted. This property corresponds to the checkbox labeled "Can't be moved, renamed, or deleted" and is not available for disks.
Class: Boolean
Modifiable: Yes
sharable container
The sharable container to which the sharing window belongs.
Class: Reference
Modifiable: No
shared
A Boolean value that indicates whether the sharable container
to which the sharing window belongs is shared (true) or not (false). This property corresponds to the checkbox in the sharing window labeled "Share this item and its contents". If
the value is true, the sharable container to which the sharing window belongs can be mounted on the desktop of a remote computer.
Class: Boolean
Modifiable: Yes
ELEMENT CLASSES
None

COMMANDS HANDLED
Close, Count, Data Size, Exists, Get, Open, Sort

DEFAULT VALUE CLASS RETURNED
A reference to a sharing window or, if you use the plural form sharing windows, a list of references.

EXAMPLE
This script opens the sharing windows for sharable containers on the desktop that belong to a specified owner:

tell application "Finder"   open (sharing window of sharable containers whose owner is "John")
end tell

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996